﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Register.aspx.cs" Inherits="Token.Piker.Web.Admin.Register" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>皮壳网后台管理员注册页</title>
    <link href="css/reset.css" rel="stylesheet" type="text/css" />
    <link href="css/register.css" rel="stylesheet" type="text/css" />
    <script src="js/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
</head>
<body>
    <div id="header">
        <h1>
            皮壳网后台管理员注册</h1>
    </div>
    <form id="regform" runat="server">
    <p>
        <label for="txtUserName">
            用户名：</label><span><asp:TextBox ID="txtUserName" runat="server" Width="200" Height="25"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="用户名不能为空" ControlToValidate = "txtUserName"></asp:RequiredFieldValidator>
            </span></p>
    <p>
        <label for="txtPassword">
            密码：</label><span><asp:TextBox ID="txtPassword" runat="server" Width="200" Height="25" TextMode ="Password"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="密码不能为空" ControlToValidate = "txtPassword"></asp:RequiredFieldValidator>
            </span></p>
    <p>
        <label for="txtPasswordEnsure">
            确认密码：</label><span><asp:TextBox ID="txtPasswordEnsure" runat="server" Width="200" TextMode = "Password"
                Height="25"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="密码不能为空" ControlToValidate = "txtPasswordEnsure" Display ="Dynamic"></asp:RequiredFieldValidator>
                <asp:CompareValidator ID="CompareValidator1" runat="server" ErrorMessage="两次输入的密码不一致" ControlToCompare = "txtPassword" ControlToValidate = "txtPasswordEnsure"></asp:CompareValidator>
                </span></p>
    <p>
        <label for="txtRealName">
            真实姓名：</label><span><asp:TextBox ID="txtRealName" runat="server" Width="200" Height="25"></asp:TextBox></span>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="真实姓名不能为空" ControlToValidate = "txtRealName"></asp:RequiredFieldValidator>
            </p>
    <p>
        <label>
            性别：</label><span><asp:RadioButton ID="rdoMale" runat="server" Text="男" GroupName="Gender" Checked ="true" />&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:RadioButton ID="rdoFemale" runat="server" Text="女" GroupName="Gender" />
                </span></p>
    <p>
        <label for="txtBirthday">
            出生日期：</label><span><asp:TextBox ID="txtBirthday" runat="server" Width="200" Height="25" onFocus = "WdatePicker()"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ErrorMessage="出生日期不能为空" ControlToValidate = "txtBirthday" ></asp:RequiredFieldValidator>
            </span></p>
    <p>
        <label for="txtQQ">
            QQ：</label><span><asp:TextBox ID="txtQQ" runat="server" Width="200" Height="25"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ErrorMessage="QQ不能为空" ControlToValidate = "txtQQ"></asp:RequiredFieldValidator>
            </span></p>
    <p>
        <label for="txtEmail">
            Email:</label><span><asp:TextBox ID="txtEmail" runat="server" Width="200" Height="25"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ErrorMessage="Email不能为空" ControlToValidate = "txtEmail"></asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" ControlToValidate = "txtEmail" Display = "Dynamic"
            runat="server" ErrorMessage="邮箱格式不正确" 
            ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
            </span></p>
    <p>
        <label for="txtPhone">
            手机：</label><span><asp:TextBox ID="txtPhone" runat="server" Width="200" Height="25"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ErrorMessage="手机不能为空" ControlToValidate = "txtPhone"></asp:RequiredFieldValidator>
              </span></p>
    <p>
        <label>
        </label>
        <span>
            <img runat = "server" src="ValidateCode.aspx" mce_src="ValidateCode.aspx" alt="验证码" style="cursor: hand;" onclick="this.src=this.src+'?'" title = "看不清？换一张"/></span></p>
    <p>
        <label for="txtValidateCode">
            验证码:</label><span><asp:TextBox ID="txtValidateCode" runat="server" Width="200" Height="25"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ErrorMessage="验证码不能为空" ControlToValidate = "txtValidateCode"></asp:RequiredFieldValidator>
            </span></p>
    <p class="lastp">
        <asp:Button ID="btnReg" runat="server" Text="注册" Width="200" Height="40" 
            onclick="btnReg_Click" /></p>
    </form>
</body>
</html>
